Optimal. Leaf size=66 \[ -\frac {i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}-\frac {i a \cos ^3(c+d x) (a+i a \tan (c+d x))^3}{15 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3497, 3488} \[ -\frac {i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}-\frac {i a \cos ^3(c+d x) (a+i a \tan (c+d x))^3}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3488
Rule 3497
Rubi steps
\begin {align*} \int \cos ^5(c+d x) (a+i a \tan (c+d x))^4 \, dx &=-\frac {i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}+\frac {1}{5} a \int \cos ^3(c+d x) (a+i a \tan (c+d x))^3 \, dx\\ &=-\frac {i a \cos ^3(c+d x) (a+i a \tan (c+d x))^3}{15 d}-\frac {i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.41, size = 50, normalized size = 0.76 \[ \frac {a^4 (4 \cos (c+d x)-i \sin (c+d x)) (\sin (4 (c+d x))-i \cos (4 (c+d x)))}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 34, normalized size = 0.52 \[ \frac {-3 i \, a^{4} e^{\left (5 i \, d x + 5 i \, c\right )} - 5 i \, a^{4} e^{\left (3 i \, d x + 3 i \, c\right )}}{30 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 4.03, size = 915, normalized size = 13.86 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.51, size = 139, normalized size = 2.11 \[ \frac {\frac {a^{4} \left (\sin ^{5}\left (d x +c \right )\right )}{5}-4 i a^{4} \left (-\frac {\left (\cos ^{3}\left (d x +c \right )\right ) \left (\sin ^{2}\left (d x +c \right )\right )}{5}-\frac {2 \left (\cos ^{3}\left (d x +c \right )\right )}{15}\right )-6 a^{4} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )}{5}+\frac {\left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{15}\right )-\frac {4 i a^{4} \left (\cos ^{5}\left (d x +c \right )\right )}{5}+\frac {a^{4} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.40, size = 118, normalized size = 1.79 \[ -\frac {12 i \, a^{4} \cos \left (d x + c\right )^{5} - 3 \, a^{4} \sin \left (d x + c\right )^{5} + 4 i \, {\left (3 \, \cos \left (d x + c\right )^{5} - 5 \, \cos \left (d x + c\right )^{3}\right )} a^{4} - 6 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 5 \, \sin \left (d x + c\right )^{3}\right )} a^{4} - {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} a^{4}}{15 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.55, size = 130, normalized size = 1.97 \[ \frac {2\,a^4\,\left (15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,15{}\mathrm {i}-25\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,5{}\mathrm {i}+4\right )}{15\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,5{}\mathrm {i}-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,10{}\mathrm {i}+5\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1{}\mathrm {i}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.42, size = 82, normalized size = 1.24 \[ \begin {cases} \frac {- 6 i a^{4} d e^{5 i c} e^{5 i d x} - 10 i a^{4} d e^{3 i c} e^{3 i d x}}{60 d^{2}} & \text {for}\: 60 d^{2} \neq 0 \\x \left (\frac {a^{4} e^{5 i c}}{2} + \frac {a^{4} e^{3 i c}}{2}\right ) & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________